import cv2
import numpy as np
import os
from . import native


class MtcnnFaceDetector():
    def __init__(self, native_interface):
        self.nativeInterface = native_interface

    def detectorOne(self, image, threshold, minSizeImage):
        return self.nativeInterface.MtcnnFaceDetctorNative(image, minSizeImage)

    def DetectFaceAndApplySimilarTransform(self, image):
        boxes = self.detectorOne(image, 0, 12)
        return self.nativeInterface.transformed(image, boxes)
